package tau.pimpmyfreedb.common.types;

public class PagedSearchResult<T> {
    private T result;
    private int totalResultsCount;
    private int currentResultsPage;
    public PagedSearchResult(T result, int currentResultsPage, int totalResultsCount) {
	this.setResult(result);
	this.setCurrentResultsPage(currentResultsPage);
	this.setTotalResultsCount(totalResultsCount);
    }
    public T getResult() {
	return result;
    }
    public int getTotalResultsCount() {
	return totalResultsCount;
    }
    public void setResult(T result) {
	this.result = result;
    }
    public void setTotalResultsCount(int totalResultsCount) {
	this.totalResultsCount = totalResultsCount;
    }
    public int getCurrentResultsPage() {
	return currentResultsPage;
    }
    public void setCurrentResultsPage(int currentResultsPage) {
	this.currentResultsPage = currentResultsPage;
    }
}
